﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class Points : MonoBehaviour {

	public static int points;
	private Text pointsText;
	public static bool redrawPoints;
	// Use this for initialization
	void Start () {
		redrawPoints = false;
		points = 0;
		pointsText = GetComponent<Text> ();
		pointsText.text = "points: \n" + (points).ToString();
	}
	
	// Update is called once per frame
	void Update () {
		if(redrawPoints) {
			pointsText.text = "points: \n" + (points).ToString();
			redrawPoints = false;
		}
	}
}
